package com.example;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "springcloud-provider",fallbackFactory = ClientServiceFallbackFactory.class)
public interface FeignHelloService {

    @GetMapping("/cloud/hello")
    String hello();
    
    @GetMapping("/cloud/sayHello")
    User sayHello();
}
